package com.pronhub.cloud.shop.filter;

import com.pronhub.shop.cloud.Result;
import com.pronhub.cloud.shop.filter.hystrix.TokenFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "member-server",fallback = TokenFeignHystrix.class)
public interface TokenFeignApi {
    @RequestMapping("/refreshToken")
    Result<Boolean> refreshToken(@RequestParam("token") String token);
}
